package org.nhindirect.stagent;

public class NHINDException extends RuntimeException 
{
	Object m_error;
	
    public NHINDException()
    {
    	m_error = null;
    }
	
    public NHINDException(Object error)
    {
    	m_error = error;
    }
    
    public NHINDException(String message)
    {
    	super(message);
    }
    
    public NHINDException(Object error, String message)
    {
    	super(message);
    	m_error = error;
    }
    
    public NHINDException(String message, Exception innerException)
    {
    	super(message, innerException);
    }
    
    public NHINDException(Object error, Exception innerException)
    {
    	super(innerException);
    	m_error = error;
    }
    
    public NHINDException(Object error, String message, Exception innerException)
    {
    	super(message, innerException);
    	m_error = error;
    }
    
    public Object getError()
    {
    	return m_error;
    }
    
    @Override
    public String toString()
    {
    	return "ERROR=" + m_error + "\r\n";
    }
}
